﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Register_Request.aspx.cs" Inherits="FacebookApp.Register_Request" MasterPageFile="~/PublicInterface/Home.Master" %>
<%@ Register src="UserControl/MsgUC.ascx" tagname="MsgUC" tagprefix="uc1" %>

<asp:Content ID="cBody" ContentPlaceHolderID="cphBody" runat="server">
    <asp:UpdatePanel ID="uplRequest" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <uc1:MsgUC ID="MsgUC1" runat="server" /><br />
            <asp:UpdateProgress ID="upsRequest" runat="server">
                <ProgressTemplate>
                    <img src="http://va1en.sftcdn.net/shared/img/interface/loader_bar.gif" alt="please wait" />
                </ProgressTemplate>
            </asp:UpdateProgress>
            <asp:Panel ID="pnlCheck" runat="server" Visible="false">
                <div class="input-group">
                  <span class="input-group-addon">Facebook Url:</span>
                  <asp:TextBox ID="txtsUrl" runat="server" CssClass="form-control" required placeholder="Mời nhập Facebook Url"></asp:TextBox>
                </div><br />
                <div class="input-group">
                  <span class="input-group-addon">Đối tượng Facebook:</span>
                  <asp:DropDownList ID="ddlType" runat="server" CssClass="form-control" required placeholder="Mời nhập Facebook ID hoặc Url"></asp:DropDownList>
                </div><br />
                <div class="input-group">
                  <span class="input-group-addon">Địa chỉ email:</span>
                  <asp:TextBox ID="txtsEmail" runat="server" CssClass="form-control" type="email" required placeholder="Mời nhập địa chỉ email"></asp:TextBox>
                </div><br />
                <asp:Button ID="btnCheck" runat="server" CssClass="btn btn-info" Text="Kiểm tra Facebook ID/ Url" onclick="btnCheck_Click" />
                <asp:Button ID="btnReset" runat="server" CssClass="btn btn-info" Text="Làm mới" Enabled="false" onclick="btnReset_Click" />
            </asp:Panel>
            <asp:Panel ID="pnlRegister" runat="server" Visible="false">
                <ul>
                    <li>Facebook ID: <asp:Label ID="lblID" runat="server"></asp:Label></li>
                    <li>Loại đối tượng: <asp:Label ID="lblType" runat="server"></asp:Label></li>
                    <li>Thông tin khác: <asp:Label ID="lblOther" runat="server"></asp:Label></li>
                </ul>
                <asp:Button ID="btnRegister" runat="server" CssClass="btn btn-info" Text="Đăng ký" onclick="btnRegister_Click" />
                <asp:Button ID="btnCancel" runat="server" CssClass="btn btn-info" Text="Hủy" onclick="btnCancel_Click" />
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>